<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->resource('movies', 'MoviesController');
    $router->resource('movies_crawler', MoviesCrawlerController::class);
    $router->resource('collects', 'CollectsController');
    $router->resource('members', 'MembersController');
    $router->resource('categories', 'CategoriesController');
    $router->get('/chartjs', 'ChartjsController@index');
});
